import Request from "@/utils/request.js"
let request = new Request().http

// 查询预约列表
export function listRecord(query) {
    return request({
        url: '/lib/record/list',
        method: 'get',
        params: query
    })
}

// 查询预约详细
export function getRecord(recordId) {
    return request({
        url: '/lib/record/' + recordId,
        method: 'get'
    })
}

// 新增预约
export function addRecord(data) {
    return request({
        url: '/lib/record',
        method: 'post',
        data: data
    })
}

// 修改预约
export function updateRecord(data) {
    return request({
        url: '/lib/record',
        method: 'put',
        data: data
    })
}

// 删除预约
export function delRecord(recordId) {
    return request({
        url: '/lib/record/' + recordId,
        method: 'delete'
    })
}
